package com.medical_houduan.commons;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Result implements Serializable {

         private Integer code;     //状态码，200表示成功

         private String message;   //提示内容

         private Object data;


     public Result(Integer code, String message) {
        this.message = message;
        this.code = code;
    }

    public Result(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }
}
